package com.zyht.bank.manage.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zyht.common.BaseServiceImpl;
import com.zyht.common.BaseDao;
import com.zyht.bank.manage.dao.AxdQrcodeMapper;
import com.zyht.bank.manage.dao.AxdQrcodeVoMapper;
import com.zyht.bank.manage.entity.AxdQrcode;
import com.zyht.bank.manage.entity.AxdQrcodeExample;
import com.zyht.bank.manage.service.AxdQrcodeService;
import com.zyht.bank.manage.vo.AxdQrcodeVo;

@Service("axdQrcodeService")
public class AxdQrcodeServiceImpl extends BaseServiceImpl<AxdQrcode, AxdQrcodeExample> implements AxdQrcodeService {

	@Resource
	private AxdQrcodeMapper axdQrcodeMapper;
	@Resource
	private AxdQrcodeVoMapper axdQrcodeVoMapper;
	
	@Override
	public BaseDao<AxdQrcode, AxdQrcodeExample> dao(){

		return axdQrcodeMapper;
	}

	@Override
	public List<AxdQrcodeVo> findOrgAndCode(String orgName, String status) {
		// TODO Auto-generated method stub
		return axdQrcodeVoMapper.findOrgAndCode(orgName,status);
	}

	@Override
	public int findOrgAndCodeCount(String orgName, String status) {
		// TODO Auto-generated method stub
		return axdQrcodeVoMapper.findOrgAndCodeCount(orgName,status);
	}

	@Override
	public void doBatchInsert(List<AxdQrcode> qrList) {
		// TODO Auto-generated method stub
		axdQrcodeVoMapper.doBatchInsert(qrList);
		
	}
}
